<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="{<$js_url>}jquery.js"></script>
<style type="text/css">
*{font-size:12px;}
</style>
</head>
</body>
<form method="post" action="/admin_important/save/" name="form2" enctype="multipart/form-data">
    <table>
        <tr>
            <td colspan="4" height="40">客户重要资料</td>
        </tr>
        <tr>
            <td>订单号：</td>
            <td colspan="3">{<$order_id>}</td><input type="hidden" id="orderid" name="orderid" value="{<$order_id>}" />
        </tr>
        <tr>
            <td>战网帐号：</td>
            <td><input type="text" id="wb_name" name="wb_name" value="{<$info.wb_name>}" /></td>
            <td>游戏名称：</td>
            <td><input type="text" id="game_name" name="game_name" value="{<$info.game_name>}" /></td><input type="hidden" id="game_id" name="game_id" value="{<$info.game_id>}" />
        </tr>
        <tr>
            <td>游戏帐号：</td>
            <td><input type="text" id="account" name="account" value="{<$info.account>}" /></td>
            <td>密码：</td>
            <td><input type="text" id="pwd" name="pwd" value="{<$info.pwd>}" /></td>
        </tr>
        <tr>
            <td>区：</td>
            <td><input type="text" id="area" name="area" value="{<$info.area_name>}" /></td>
            <td>服务器：</td>
            <td><input type="text" id="server" name="server" value="{<$info.server_name>}" /></td>
        </tr>
        <tr>
            <td>密保卡：</td>
            <td colspan="3">{<if $info.img>}<a href="/upload/cards/{<$info.img>}" target="_blank"><img border="0" src="/upload/cards/{<$info.img>}" width="300" /></a>{<else>}暂无密保卡图片{</if>}<br />上传：<input type="file" name="img" id="img" /></td>
        </tr>
        <tr>
            <td colspan="4"><input type="submit" value="保存修改" />&nbsp;<input type="reset" /></td>
        </tr>
    </table>
</form>
<br />
<form method="post" action="/admin_order/send_order/" name="form1" id="form1" onsubmit="return check_form();">
    请输入代打人员代码：<input type="text" id="dai" name="dai" />（注意：以WB开头）
    <br />
    <input type="hidden" id="order_id" name="order_id" value="{<$order_id>}" />
    <input type="submit" value="发送" />
</form>
<script>
function check_form(){
    var dai = $('#dai').val();
    var pre = dai.substr(0,2);
    pre = pre.toUpperCase();
    if(pre != 'WB' ||){
        alert('请输入正确的代打代码，必须以WB开头');
        return false;
    } else {
        return true;
    }
}
</script>
</body>